﻿<!DOCTYPE HTML>
<html>
<head>
   <title>Demo_cavas</title>
   <meta charset="utf-8">
  
</head>
<body>
    <canvas id="myCanvas" /> 
</body>
<script>
	var c=document.getElementById("myCanvas");
	var ctx=c.getContext("2d");
	ctx.beginPath();
	ctx.font="30px 宋体";
	ctx.strokeText("Hello World",10,50);
</script>
</html>